package MCQReaderModel;

import java.awt.Rectangle;

public class BitField extends Zone {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	private int size;

	public BitField() {
		this(null, 0);
	}

	public BitField(Rectangle position, int size) {
		this.rectangle = position;
		this.setSize(size);
	}

	/**
	 * @param size the size to set
	 */
	public void setSize(int size) {
		this.size = size;
	}

	/**
	 * @return the size
	 */
	public int getSize() {
		return size;
	}

	public String toString() {
		return "<CodeBarre " + size + " Position: " + rectangle + ">";
	}

}